<template>
    <div>
        <Navbar title="登录/注册" icon="cross"></Navbar>
        <van-form @submit="onSubmit">
            <van-field
              v-model="username"
              left-icon="manager"
              name="用户名"
              placeholder="用户名"
              :rules="[{ required: true, message: '请填写用户名' }]"
            />
            <van-field
              v-model="password"
              type="password"
              left-icon="lock"
              name="密码"
              placeholder="密码"
              :rules="[{ required: true, message: '请填写密码' }]"
            />
            <div style="margin: 16px">
              <van-button block type="info" native-type="submit"
                >登陆</van-button
              >
            </div>
          </van-form>
    </div>
</template>
<script>

import Navbar from '../../components/navbar'
export default {
  components: { Navbar },
  data(){
      return {
          
      }
  }
    
}
</script>
<style lang="">
    
</style>